package com.kx.smsplatform.config;

import com.kx.smsplatform.common.constants.RabbitMQConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author Sun
 * @Date 2021/7/1 21:14
 */

@Configuration
public class RabbitMQConfig {
    //1. 创建接口模块发消息到策略模块的队列
    @Bean
    public Queue preSendQueue() {
        //使用默认的交换机
        return QueueBuilder.durable(RabbitMQConstants.TOPIC_PRE_SEND).build();
    }

}


